import request from '@/router/axios'

export function fetchList(query) {
  return request({
    url: '/exam/execute/doubtful/page',
    method: 'get',
    params: query
  })
}
export function fetchDoubtfulList(query) {
  return request({
    url: '/exam/execute/doubtful/doubtfulPage',
    method: 'get',
    params: query
  })
}

export function listPointByProjectId(query) {
  return request({
    url: '/exam/execute/doubtful/listPointByProjectId',
    method: 'get',
    params: query
  })
}

export function addObj(obj) {
  return request({
    url: '/exam/execute/doubtful',
    method: 'post',
    data: obj
  })
}

export function getObj(id) {
  return request({
    url: '/exam/execute/doubtful/' + id,
    method: 'get'
  })
}
export function getPoint(id) {
  return request({
    url: '/exam/execute/doubtful/' + id,
    method: 'get'
  })
}

export function getByPointId(id) {
  return request({
    url: '/exam/execute/doubtful/byPointId/' + id,
    method: 'get'
  })
}

export function getDoubtfulByProjectId(id) {
  return request({
    url: '/exam/execute/doubtful/byProjectId/' + id,
    method: 'get'
  })
}

export function delObj(id) {
  return request({
    url: '/exam/execute/doubtful/' + id,
    method: 'delete'
  })
}

export function putObj(obj) {
  return request({
    url: '/exam/execute/doubtful',
    method: 'put',
    data: obj
  })
}

export function submit(obj) {
  return request({
    url: '/exam/execute/doubtful/submit',
    method: 'post',
    data: obj
  })
}
